package org.example.springboot_demo1.controllerResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:38917
 * Date:2025/4/9
 * Time:22:30
 */
@RequestMapping("/ControllerResponse")
@Controller
public class ControllerResponse {
    //返回视图
    @RequestMapping("/HTMLView")
    public String HTMLView(){
        return "/show.html";
    }
    //返回数据
    @ResponseBody
    @RequestMapping("/HTMLData")
    public String HTMLData(){
        return "/show.html";
    }
}
